www.gusucode.com > 24Beta 虚拟主机版 1.0.0 Beta源码程序 > 24Beta 虚拟主机版 1.0.0 Beta源码程序/24Beta-1.0.0-vhost/protected/views/site/rss.php

    <rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title><?php echo app()->name;?>_<?php echo param('domain');?></title>
	<atom:link href="<?php echo aurl('site/rss');?>" rel="self" type="application/rss+xml" />
	<link><?php echo abu();?></link>
	<description><?php echo param('domain');?> - <?php echo app()->name;?></description>
	<pubDate><?php echo gmstrftime('%a, %d %b %Y %H:%M:%S GMT', $posts[0]->update_time);?></pubDate>
	<generator><?php echo param('domain');?></generator>
	<language><?php echo app()->language;?></language>
	<image>
		<link><?php echo abu();?></link>
		<url><?php echo abu('resource/images/logo.jpg', true);?></url>
		<title><?php echo app()->name . '_' . param('domain');?></title>
	</image>
	<?php foreach ($posts as $p):?>
	<item>
		<title><?php echo $p->subject;?></title>
		<link><?php echo $p->aurl;?></link>
		<pubDate><?php echo gmstrftime('%a, %d %b %Y %H:%M:%S GMT', $p->update_time);?></pubDate>
		<dc:creator><?php echo $p->postUser;?></dc:creator>
		<category><![CDATA[<?php echo $p->topic->name;?>]]></category>
		<category><![CDATA[<?php echo $p->category->name;?>]]></category>
		<guid isPermaLink="false"><?php echo $p->aurl;?></guid>
		<description><![CDATA[<?php echo $p->purifySummary;?>]]></description>
		<content:encoded><![CDATA[<?php echo $p->purifyContent;?>]]></content:encoded>	
	</item>
	<?php endforeach;?>
</channel>
</rss>